﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;

namespace ChessAnotator.UserControls.Pieces
{
    public abstract class BasePiece 
    {
        #region Private Members
        private Square m_sSquare;
        private string m_sSquareName;
        private Control m_oPieceUI;
        private Base.Business.Nomenclature.PieceColor m_ePieceColor;
        #endregion

        #region Properties
        public Square Square
        {
            get
            {
                return m_sSquare;
            }
            set
            {
                m_sSquare = value;
            }
        }

        public string SquareName
        {
            get
            {
                return m_sSquareName;
            }
            set
            {
                m_sSquareName = value;
            }
        }

        public Control PieceUI
        {
            get
            {
                return m_oPieceUI;
            }
            set
            {
                m_oPieceUI = value;
            }
        }

        public Base.Business.Nomenclature.PieceColor PieceColor
        {
            get
            {
                return m_ePieceColor;
            }
            set
            {
                m_ePieceColor = value;
            }
        }
        #endregion

        #region Public Members
        public abstract void SetScale(double nScale);

        public abstract List<int> GetAttackedSquares();
        #endregion
    }
}
